<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:fbi="http://www.fbifaces.org"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <style type="text/css">
            .input-col-m {
                width: 60px;
            }

            .input-col-l {
                width: 80px;
            }

            .input-col-xxl {
                width: 1%;
                text-align: right;
            }

            .col-80 {
            }

            .col-20 {
                width: 5%;
            }
        </style>
        <script type="text/javascript" src="#{request.contextPath}/UI/support/pub.js"/>
        <script type="text/javascript">
            function openDetl(obj) {
                var guid = obj.parentNode.parentNode.children[0].innerHTML;
                var sfeature = "dialogwidth:850px; dialogheight:550px;center:yes;help:yes;resizable:no;scroll:yes;status:no";
                var arg = new Object();
                arg.doType = "select";
                arg.guid = guid;
                var rtn = dialog("common/payVoucherDetl.xhtml?doType=select&amp;guid=" + guid, arg, sfeature);
            }
        </script>
    </ui:define>

    <ui:define name="content">
        <div style="margin:5px;">
            <h:form id="qryForm">
                <p:panel header="支付信息查询">
                    <h:panelGrid columns="2" cellspacing="5" columnClasses="col-80,col-20">
                        <h:panelGrid columns="4" cellspacing="5"
                                     columnClasses="input-col-m,input-col-l,input-col-m,input-col-l">
                            <h:outputLabel value="凭证编号"/>
                            <h:inputText id="printid" value="#{payVchListQryAction.payPayvoucher.printid}"
                                         style="width:160px;"/>
                            <h:outputLabel value="预算单位:"/>
                            <h:selectOneMenu id="bdgagency" value="#{payVchListQryAction.payPayvoucher.bdgagency}"
                                             style="width:160px;">
                                <f:selectItems value="#{payVchListQryAction.bdgagencyList}"></f:selectItems>
                            </h:selectOneMenu>
                            <h:outputLabel value="支付方式:"/>
                            <h:selectOneMenu id="paytype" value="#{payVchListQryAction.payPayvoucher.paytype}"
                                             style="width:160px;">
                                <f:selectItems value="#{payVchListQryAction.payTypeList}"></f:selectItems>
                            </h:selectOneMenu>
                            <h:outputLabel value="凭证类型:"/>
                            <h:selectOneMenu id="vouchertype" value="#{payVchListQryAction.payPayvoucher.vouchertype}"
                                             style="width:160px;">
                                <f:selectItems value="#{payVchListQryAction.voucherTypeList}"></f:selectItems>
                            </h:selectOneMenu>
                            <h:outputLabel value="处理状态:"/>
                            <h:selectOneMenu id="processflag" value="#{payVchListQryAction.payPayvoucher.processflag}"
                                             style="width:160px;">
                                <f:selectItems value="#{payVchListQryAction.processFlagList}"></f:selectItems>
                            </h:selectOneMenu>
                            <h:outputLabel value="处理日期:"/>
                            <p:calendar pattern="yyyy-MM-dd" id="updatedt" value="#{payVchListQryAction.updatedt}"
                                        style="width:160px;"></p:calendar>

                        </h:panelGrid>
                        <h:panelGrid>
                            <p:commandButton id="btnQry" style="width:80px;" value="查询"
                                             action="#{payVchListQryAction.onBtnQryClick}"
                                             update="pdt,msgs">
                            </p:commandButton>
                        </h:panelGrid>
                    </h:panelGrid>
                </p:panel>
                <p:ajaxStatus style="height:20px;text-align:center">
                    <f:facet name="start">
                        <h:graphicImage value="/images/ajaxloadingbar.gif"/>
                    </f:facet>
                    <f:facet name="complete">
                        <h:outputText value=""/>
                    </f:facet>
                </p:ajaxStatus>
                <p:dataTable id="pdt" dynamic="true"
                             value="#{payVchListQryAction.payPayvoucherList}" var="record"
                             paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                             paginator="true" rows="15" paginatorPosition="bottom"
                             rowsPerPageTemplate="100,50,30,15,5"
                             emptyMessage="数据记录为空...">
                    <ui:include src="common/payVoucherList.xhtml">
                        <ui:param name="backBean" value="#{payVchListQryAction}"/>
                    </ui:include>
                </p:dataTable>
            </h:form>
        </div>
    </ui:define>
</ui:composition>